package com.ljh.onlinetest.repository;

import com.ljh.onlinetest.domain.ExamPaper;
import com.ljh.onlinetest.viewmodel.admin.paper.PaperPageRequestVM;
import com.ljh.onlinetest.viewmodel.student.dashboard.PaperFilter;
import com.ljh.onlinetest.viewmodel.student.dashboard.PaperInfo;
import com.ljh.onlinetest.viewmodel.student.exam.ExamPaperPageVM;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author ljh
 * @ClassName ExamPaperMapper.java
 * @createTime 2022年01月18日
 */
@Mapper
public interface ExamPaperMapper extends BaseMapper<ExamPaper> {
    List<ExamPaper> page(PaperPageRequestVM pageRequestVM);

    List<ExamPaper> taskExamPage(PaperPageRequestVM pageRequestVM);

    int updateTaskPaper(@Param("taskId") Integer taskId,@Param("paperIds") List<Integer> paperIds);

    int clearTaskPaper(@Param("paperIds") List<Integer> examPaperIds);

    Integer selectAllCount();

    List<PaperInfo> indexPaper(PaperFilter fixPaperFilter);

    List<ExamPaper> studentPage(ExamPaperPageVM model);
}
